Set threshold monitor settings.
Note
--count
is valid only when --type
of
hardware-resources
is specified.Specifies the maximum number of event actions that can be taken in an interval. See interval. A valid value is in the range of 1-60 with Default 4. Valid only for type hardware-resources, which sets the common/shared value for all hardware resource types of bfd-session, lif, mac-table, vxlan-tunnel, route, host, nexthop and ecmp. (Default -1)
For type cpu/memory it specifies the polling interval, in seconds after which a sample will be taken. A valid value is in the range of 10-3600 seconds with Default 120 seconds.
For type hardware-resources, which sets the common/shared value for all hardware resource types of bfd-session, lif, mac-table, vxlan-tunnel, route, host, nexthop and ecmp, it specifies the number of notifications within an interval. A valid value is in the range of 30 to 900 seconds with Default 30 seconds.
This example sets a cpu threshold-monitor to trigger an snmp event when the cpu threshold of 80% is exceeded. The threshold must be exceeded 3 times (retry) for the event to be triggered, which would take 3 minutes before the notification was sent.
efa inventory device threshold-monitor set –-type cpu --ip 10.10.10.153-154 –-actions snmp -–high-limit 80 --retry 3
This example sets a mac-table threshold-monitor to trigger an snmp event when the high-limit threshold of 80% is exceeded or the low-limit threshold of 50% is exceeded. Events can be for the threshold exceeding 80% (high) or 50% (low) limits.
efa inventory device threshold-monitor set –-type mac-table --fabric fabric1 –-actions snmp -–high-limit 80 -–low-limit 50This example sets the threshold-monitor hardware-resources interval and count to 60 and 3 respectively. These values apply to the types bfd-session, lif, mac-table, and vxlan-tunnel, route, host, nexthop and ecmp.
efa inventory device threshold-monitor set –-type hardware-resources --ip 10.10.10.153-154 --interval 60 --count 3